package com.fusion.core.settings;


/**
 * @author SwethaShivakumar 
 * Project: fusion
 * Date: Mar 15, 2009
 * URL: http://fusionwiki.co.cc
 * Mail Me At: shiva@fusionproject.co.cc
 */
public class Share {
    private String path;

    public Share() {
    }

    public Share(String path) {
        this.path = path;
    }

    public String getPath() {
        if (path == null) return null;
        if (path.endsWith("/")) path = path.substring(0,path.length()-1);
        if (path.endsWith("\\")) path = path.substring(0,path.length()-1); 
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
